package com.test;

import java.util.HashMap;
import java.util.Map;

import org.springframework.context.ApplicationContext;

/**
 * @action: application Constants
 * @author:LiuXiangLong
 * @createTime:2008-10-24上午10:13:39
 * @version 1.0
 */
public class Constants {

	/** The name of the configuration hashmap stored in application scope. */
	// public static final String CONFIG = "appConfig";
	public static ApplicationContext ctx = null;

	public static final String DEFAULT_PASSWORD = "111111";

	public static final Map<String, String> IPAD_CATEGORY_IDS = new HashMap<String, String>();

	/** 监听对象 **/
	public static final Map<String, String> LISTENER_ACTION = new HashMap<String, String>();

	public static final Map<Integer, String> PUBLIC_METHOD = new HashMap<Integer, String>();

	public static final String REGISTER_USER_FILE_DIR = "E:/WorkInfo/work_space/Cplatform_WorkSpace/zhengwuYJ/WebContent/file/";

	public static Map<String, Object> settings = new HashMap<String, Object>();// setting信息
	static {

		LISTENER_ACTION.put("index", "首页");
		LISTENER_ACTION.put("getOneEntityItem", "内容页");
		LISTENER_ACTION.put("getEntityItemsListByCategoryId", "列表页");
		LISTENER_ACTION.put("listSurveys", "民调列表");
		LISTENER_ACTION.put("getBoardcast", "播报");

		Constants.PUBLIC_METHOD.put(1, "login");
		Constants.PUBLIC_METHOD.put(2, "loginOut");
		Constants.PUBLIC_METHOD.put(3, "saveUserMade");
		Constants.PUBLIC_METHOD.put(4, "delUserMade");
		Constants.PUBLIC_METHOD.put(5, "userMadeList");
		Constants.PUBLIC_METHOD.put(6, "userMadeIndex");
		Constants.PUBLIC_METHOD.put(7, "updatePoll");
	}

}